-- GENERATED SPELL FOR [Serpentshrine Sporebat] --


function spell0_21246(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(38461,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21246', 5254, 1)
end

function Sorts_21246(pUnit, Event)
local choix_sorts_21246 = math.random(0, 0)
if choix_sorts_21246 == 0 then
pUnit:RegisterEvent('spell0_21246', 1, 1)
end
end

function mob21246_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21246', math.random(1500, 3000), 1)
end

function mob21246_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21246_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21246_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21246, 1, 'mob21246_Action')
RegisterUnitEvent(21246, 2, 'mob21246_Leave')
RegisterUnitEvent(21246, 3, 'mob21246_Kill')
RegisterUnitEvent(21246, 4, 'mob21246_Die')
